<?php if (!defined('THINK_PATH')) exit();?><html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="description" content="">
    <meta name="keyword" content="">
    <title>修改密码</title>
    <link rel="stylesheet" href="/Public/Home/css/common.css">
    <link rel="stylesheet" href="/Public/Home/css/index.css">
    <link rel="stylesheet" href="/Public/Home/css/L-index.css">
    <script src="/Public/Home/js/jquery-1.12.4.min.js"></script>

</head>
<body>
<!--引入头部 star-->
<!-- header start -->
<!-- header start -->
    <link rel="stylesheet" href="/Public/Home/css/L-index.css">
<div class="index-header">
    <div class="header">
        <!-- logo start -->
        <a class="header-logo" href="/"></a>
        <!-- logo end -->
        <!-- city start -->
        <div class="header-city-cur">
            <span id="mycity"><?php echo (session('mycity')); ?></span>
            <div class="header-city-select">
                <p id="a" class="column-head">选择城市</p>
                <div class="header-city-wrap clearfix">
                    <?php if(is_array($citys)): $i = 0; $__LIST__ = $citys;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$city): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Home/Index/changecity',array('ci'=>$city['mkc'],'citype'=>1));?>"><?php echo ($city["mkc"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
                <p id="a" class="column-head">选择市场</p>
                <div class="header-city-wrap clearfix">
                    <?php if(is_array($mks)): $i = 0; $__LIST__ = $mks;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$mk): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Home/Index/changecity',array('ci'=>$mk['mkname'],'citype'=>0));?>"><?php echo ($mk["mkname"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
                <p class="header-city-more">更多城市/市场正在加紧筹备，敬请期待。</p>
            </div>
        </div>
        <!-- city end -->
        <!-- phone start -->
        <p class="header-phone">
            全国统一热线：<span>400-100-1313<br><span class="header-phone-small">400-100-要车要车</span></span>
        </p>
        <!-- phone end -->
        <!-- search start -->
        <div class="header-search">
            <input class="header-search-input" type="text" id="keywords" placeholder="搜索您想要的车">
            <button class="header-search-btn" onclick="javascript:search()">搜索</button>
        </div>
        <!-- search end -->
    </div>
</div>
<!-- header end -->

<!-- nav start -->
<div class="xly_header">
    <div>
        <ul>
            <li><a class="nav-link <?php if(MODULE_NAME== Index && ACTION_NAME== index): ?>cur<?php endif; ?>" href="<?php echo U('Home/Index/index');?>">首页</a></li>
            <li><a class="nav-link <?php if(CONTROLLER_NAME== Index && ACTION_NAME== get_car_list): ?>cur<?php endif; ?>" href="<?php echo U('Home/Index/get_car_list');?>?pa=0&ma=40&or=d&pl=<?php echo (session('mycity')); ?>&ci=<?php echo (session('citype')); ?>">全部车型</a></li>
            <li><a href="#">资讯</a></li>
            <li><a href="#">网点</a></li>
        </ul>
        <!--登录显示-->
        <div class="xly_right alreadylog">
            <a href="#">17381828993</a>
        </div>
        <!--未登录显示-->
        <!--<div class="xly_right unlog">-->
            <!--<a href="#">登录</a>&nbsp;/&nbsp;<a href="#">注册</a>-->
        <!--</div>-->
    </div>
</div>
<!-- <div class="nav-wrap">
    <div class="nav">
        <a class="nav-link <?php if(MODULE_NAME== Index && ACTION_NAME== index): ?>cur<?php endif; ?>" href="<?php echo U('Home/Index/index');?>">首页</a>
        <a class="nav-link <?php if(CONTROLLER_NAME== Index && ACTION_NAME== get_car_list): ?>cur<?php endif; ?>" href="<?php echo U('Home/Index/get_car_list');?>?pa=0&ma=40&or=d&pl=<?php echo (session('mycity')); ?>&ci=<?php echo (session('citype')); ?>">我要买车</a>
        <a class="nav-link <?php if(CONTROLLER_NAME== Seller && ACTION_NAME== index): ?>cur<?php endif; ?>" href="<?php echo U('Home/Seller/index');?>">我要寄售</a>
    </div>
</div> -->
<!-- nav end -->
<!-- header end -->
<!--end-->
    <div class="cont clearfix">
        <!--引入左边 star-->
        <!--end-->
        <div class="right">
            <div class="xgmm">
                <input type="password" id="old_password" value="" placeholder="请输入旧密码" class="input">
                <input type="password" id="new_password" value="" placeholder="设置新密码" class="input">
                <input type="password" id="re_password" value="" placeholder="确认新密码" class="input">
                <button class="sure_modify">确认修改</button>
            </div>
        </div>
    </div>

<!-- footer start -->

<!-- footer start -->
<div class="footer">
	<!-- company info start -->
	<div class="footer-company clearfix">
		<div class="footer-logo"></div>
		<p class="footer-phone">咨询电话：400-100-1313<br><span>（周一至周日 8:00-21:00）</span><br>售后服务专线：400-100-1313</p>
		<div class="footer-qrcode">
			<img src="/Public/Home/images/qrcode-wx.png">
			<p>关注微信</p>
		</div>
		<div class="footer-qrcode">
			<img src="/Public/Home/images/qrcode-wx.png">
			<p>下载APP</p>
		</div>
		<p class="footer-copyright">
			Copyright 2017 www.58lianche.com All Rights Reserved<br>蜀ICP备16031245号<br>
		</p>
	</div>
	<!-- company info end -->

    <!-- links start -->
    <div class="footer-links">
        <p class="footer-links-title">热门品牌：</p>
        <div class="footer-links-wrap clearfix" id="linkbrand">

        </div>
        <button class="footer-links-btn"></button>
    </div>
    <div class="footer-links">
        <p class="footer-links-title">热门车系：</p>
        <div class="footer-links-wrap clearfix" id="linkserise">

        </div>
        <button class="footer-links-btn"></button>
    </div>
    <div class="footer-links">
        <p class="footer-links-title">热门城市：</p>
        <div class="footer-links-wrap clearfix">
            <?php if(is_array($citys)): $i = 0; $__LIST__ = array_slice($citys,0,12,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$city): $mod = ($i % 2 );++$i;?><a href="/index.php?m=Web&c=Index&a=changecity&ci=<?php echo ($city["mkc"]); ?>&citype=1"><?php echo ($city["mkc"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
        <button class="footer-links-btn"></button>
    </div>
    <div class="footer-links">
        <p class="footer-links-title">友情链接：</p>
        <div class="footer-links-wrap clearfix">
            <?php if(is_array($linklist)): $k = 0; $__LIST__ = $linklist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$link): $mod = ($k % 2 );++$k;?><a href="<?php echo ($link["url"]); ?>" target="_blank"><?php echo ($link["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
        <button class="footer-links-btn"></button>
    </div>
    <!-- links end -->

	<!-- contact start -->
	<p class="footer-contact">四川伍捌链车汽车销售服务有限公司    四川省成都市天府新区天府大道南段2039号和美.海堂中心（天府创客）16楼1609号</p>
	<!-- contact end -->
</div>
<!-- footer end -->
<!-- footer end -->
</body>
<script src="/Public/Home/js/jquery-1.12.4.min.js"></script>
<script>
    $('.sure_modify').click(function(){
        console.log(111);
        var old_password = $('#old_password').val();
        var new_password = $('#new_password').val();
        var re_password = $('#re_password').val();
        $.post("<?php echo U('Home/center/modifypsw');?>",{
            old_password:old_password,
            new_password:new_password,
            re_password:re_password
        },function(res){
            console.log(res);
            // if(res.err == 0){
            //     window.location.href="<?php echo U('Home/Login/login');?>"
            // }
        },'json')
    });
</script>
</html>